//
//  MusicTableViewCell.m
//  WYH_MusicPlayer
//
//  Created by wyh on 16/3/30.
//  Copyright © 2016年 吴岳恒. All rights reserved.
//

#import "MusicTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "musicModel.h"

@interface MusicTableViewCell()



@end


@implementation MusicTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.image.layer.masksToBounds = YES;
    self.image.layer.cornerRadius = 74;
    
    
}


-(void)setModel:(musicModel *)model
{
    [self.image sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.picUrl]] placeholderImage:[UIImage imageNamed:@"iconfont-yutoubaoicon"]];
    self.songNameLabel.text = model.name;
    self.singerNameLabel.text = model.singer;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
